package hibernate.method.interfaces;

import hibernate.model.Category;

import java.util.List;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public interface CategoryMethodsInterface {
	
	public List<Category> listAllCategories (SessionFactory sessionFactory, Session session);
	
	public void addCategory (SessionFactory sessionFactory, Session session, String categoryName);
	
	public void deleteCategory (SessionFactory sessionFactory, Session session, Category cat);
	
	public Category idToCategory (SessionFactory sessionFactory, Session session, int id); 
	
	public Category findCategoryByName (SessionFactory sessionFactory, Session session, String categoryName);

}
